
<form name="form" method="post" action="{[$root]}{[$deleteLink]}{[$p1]}{[$p3]}">
<table>
	<tr align="center">
		<th width="40"><input type="checkbox" class="check" name="chkall" value="on" onclick="chkbox(this.form)"></th>
		<th width="40">序号</th>
		<th>流水号</th>
		<th>产品</th>
		<th>工件</th>
		<th>工艺</th>
		<th width="40"></th>

		<th>附件</th>
		<th>负责人</th>
		<th>质检员</th>
		<th>状态</th>
		<th>{[$orderby]}</th>
	</tr>
	{[foreach name=outer key=key item=item from=$result]} {[assign var="no" value="`$key+$pager->from+1`"]}
	<tr align="center" onMouseOver="this.style.backgroundColor='#D2E4FC'" onMouseOut="this.style.backgroundColor=''">
		<td>{[if $smarty.session.code eq 'admin']} <input type="checkbox" class="check" name="c_{[$item.id]}" value="{[$item.id]}">
		{[/if]}</td>
		<td>{[$no]}</td>
		<td>{[$item.id]}</td>
		<td><a id="mold_{[$item.mold]}" href="mold.php?do=Mold.view&id={[$item.mold]}">{[$item.mold_t]}</td>
		<td>{[$item.piece]}</td>

		<td>{[$item.technics]}</td>

		<td><a href="javascript:void(0)" onclick="Produce.popup(event, '{[$p2]}&p={[$p]}', {[$item.id]}, {[$item.status]})">[管理]</a></td>
		<td>{[if $item.filename ne '']} <a href="{[$item.file]}" target="_blank">[下载]</a> ({[$item.filesize_t]}) {[else]} 无 {[/if]}</td>

		<td><a href="javascript:void(0)" onclick="emp('{[$item.emp]}')">{[$item.emp_t]}</a></td>
		<td>{[if $item.quality ne '']} <a href="javascript:void(0)" onclick="emp('{[$item.quality]}')">{[$item.quality_t]}</a> {[/if]}
		</td>

		<td>{[$item.status_t]}</td>
		<td>{[$item.orderby_x]}</td>
	</tr>
	{[/foreach]}
	<tr align="center">
		<td><input type="button" name="delete" value="删除" onclick="expunge(this.form)"></td>
		<td colspan="11">{[if $smarty.session.dept eq 'mjqc' or $smarty.session.code eq 'admin']} <a
			href="{[$SCRIPT_NAME]}{[$baseLink]}{[$p2]}&tpl=doc" target="_blank" style="color: blue">打印质检任务单</a> {[/if]} <a
			href="{[$root]}{[$reportLink]}{[$p2]}">输出报表</a></td>
	</tr>
</table>
</form>

{[include file="footer.tpl"]}

<script type="text/javascript"
	src="js/mold/produce/list.js?r={[$smarty.now]}"></script>
